package produce;

public class TestDriverMyStack {
    public static void main(String[] args) {
        //创建一个仓库
        MyStack myStack = new MyStack(10);
        //创建生产者消费线程
        Thread threadProducer = new ThreadProducer(myStack);
        //创建消费者消费线程
        Thread threadCousumer = new ThreadConsumer(myStack);

        //启动两个线程
        threadProducer.start();;
        threadCousumer.start();
    }
}
